II Chronicles 25:2 Midrash

וַיַּ֥עַשׂ הַיָּשָׁ֖ר בְּעֵינֵ֣י יְהוָ֑ה רַ֕ק לֹ֖א בְּלֵבָ֥ב שָׁלֵֽם׃

And he did that which was right in the eyes of the LORD, but not with a whole heart.

Read midrashic interpretation of II Chronicles 25:2: and classical rabbinic exegesis.